package com.heima.model.wemedia.dtos;

import com.heima.model.wemedia.pojos.WmNews;
import lombok.Data;

import java.io.Serializable;

@Data
public class WmWeMediaDto implements Serializable {
    private Integer id;
    private String msg;
    private Integer page;
    private Integer size;
    private Integer status;
    private String title;
    public void checkParam() {
        if (this.page == null || this.page < 0) {
            setPage(1);
        }
        if (this.size == null || this.size < 0 || this.size > 100) {
            setSize(10);
        }
    }}
